/*
 * @Descripttion: 
 * @Author: liuYaoYu
 * @Date: 2021-12-15 11:53:09
 * @LastEditors: liuYaoYu
 * @LastEditTime: 2021-12-15 14:28:26
 */
package main
import (
	"fmt"
	"time"
	"math/rand"
)
// 第一题 循环打印输入的月份的天数 使用continue实现
// 要有判断输入的月份是否错误的语句
 var count int = 0
func main(){
	test()
}


func test() {
	rand.Seed(time.Now().UnixNano())
	fmt.Println("请输入你的正数")
	var num int
	num1:=rand.Intn(100)
	fmt.Println(num1)
	fmt.Scanln(&num)
	count++
	if count==1&&num==num1{
		fmt.Println("你真是个天才")
		return 
	}
	if (count==2||count==3)&&num==num1{
		fmt.Println("你狠聪明 赶上我了")
		return 
	}
	if (count>=4&&count<=9)&&num==num1{
		fmt.Println("一般般")
		return 
	}
	if (count==10)&&num==num1{
		fmt.Println("可算猜对了")
		return 
	}
	if (count>=10)&&num!=num1{
		fmt.Println("说你点啥好呢")
		return 
	}
	if (count<10)&&num!=num1{
		test()
	}
}
